<?php

namespace Database\Factories;
;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Blog>
 */
class BlogFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition()
    {
        return [
            'title' => fake()->sentence(5),
            'featured_image' => fake()->imageUrl(640, 480),
            'slug' => fake()->slug,
            'body' => fake()->paragraphs(3, true),
            'user_id' => rand(1, 10)
        ];
    }
}
